﻿using System.Runtime.InteropServices;
using System.Text;

namespace ZenWplExporter
{
	/// <summary>
	/// Exposes native methods of Win32 API
	/// </summary>
	internal static class NativeMethods
	{
		[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
		public static extern int GetShortPathName(
			[MarshalAs(UnmanagedType.LPTStr)] string path,
			[MarshalAs(UnmanagedType.LPTStr)] StringBuilder shortPath,
			int shortPathLength);
	}
}